import React from 'react';
import ReactDOM from 'react-dom/client';
import ComponentsAndProps from '../views/docs/components-and-props';

const menus = [{
  path: '/docs/componentsAndProps',
  title: '组件 & Props',
  component: ReactDOM.createClass({
    render() {
      return (
        <ComponentsAndProps />
      )
    }
  })
}, {
  path: '/docs/stateAndLiftCycle',
  title: 'State & 生命周期',
  component: '',
}, {
  path: '/docs/handlingEvents',
  title: '事件处理',
  component: '',
}, {
  path: '/docs/conditionalRendering',
  title: '条件渲染',
  component: '',
}];
export default menus;